﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OfferPriceQuantity.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Quan tri he thong</title>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />

    <script src="assets/js/Admin_002.js" type="text/javascript"></script>

    <script src="assets/js/Admin.js" type="text/javascript"></script>

    <script src="assets/js/jquery.js" type="text/javascript"></script>

    <script src="assets/js/jquery.validate.js" type="text/javascript"></script>

    <script type='text/javascript' src="assets/js/common.js"></script>

    <script type='text/javascript' src="assets/js/jquery.autocomplete.js"></script>

    <script type='text/javascript' src="assets/js/Ports.js"></script>

    <script type='text/javascript' src="assets/js/Carrs.js"></script>

    <link rel="stylesheet" type="text/css" href="assets/css/jquery.autocomplete.css" />
    <style type="text/css">
    .thheader{
    font-weight:bold;vertical-align:middle;text-align:center;
    font-size:11px;
    border:1px solid #ccc !important;
    line-height: 12px !important;
    }
    .tdboder{
    border:none !important;
    }
    .tdboder p{
    padding:1px !important;
    width:40px;
    border:1px solid #ccc !important;
    border-bottom:1px solid #ccc !important;
    }
    </style>

    <script type="text/javascript">
     function doDelete(ExtID,CustID,Action)
    {    
	    if (confirm('Bạn có thực sự muốn xóa?' ))
	    {       
	            var tid= getUrlVars()['tid'];    
                window.location.href = "CustomerRelation.Edit.aspx?tid="+tid+"&action="+Action+"&ID=" + CustID+"&ExtID="+ExtID;
        }
    }
    </script>

    <%if (Request.QueryString["view"] != null && Request.QueryString["view"] == "0")
      { %>
    <style type="text/css">
    input[type=text], input[type=password], textarea, select
        {
        border: none;        
        }
        input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
        border-color: #4488cc;
        border-style: solid;
        border-width: 1px;
        margin: 0;
        background-color: #FCFFC5 ! important;
        input.awesome:disabled;   
         }
        .row {
         border-bottom:1px solid #E9E9E9;
         }
    </style>

    <script type="text/javascript">
        $(function ()
        {
            $('input:text').each(function ()
            {
                $(this).attr('readonly', true);
            });
        });
    </script>

    <%} %>
</head>
<body>
    <div id="body-wrapper">
        <div id="main-content1" style="padding: 0px; margin-left: 5px;">
            <div class="">
            </div>
            <h2>
                Quantity</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server" method="post">
                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">
                            Quantity
                        </h3>
                        <div class="clear">
                        </div>
                    </div>
                    <!--Customer Offer Prices-->
                    <fieldset>
                        <asp:Repeater ID="rptOfferPricesQty" runat="server">
                            <ItemTemplate>
                                <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Index")%>
                                        <asp:HiddenField ID="ID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                                        </asp:HiddenField>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Name" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Dc20" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Dc20")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Dc40" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Dc40")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Hc40" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Hc40")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Rf20" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Rf20")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Rf40" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Rf40")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="CBM" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "CBM")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="KG" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "KG")%>'></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Set" runat="server" Width="40px" Text='<%# DataBinder.Eval(Container.DataItem, "Set")%>'></asp:TextBox>
                                    </td>
                                    <!--td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                    </td-->
                                </tr>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                                    <thead>
                                        <tr>
                                            <th align="center" class="thheader" width="30px">
                                                Stt</th>
                                            <th align="center" class="thheader">
                                                Description</th>
                                            <th align="center" class="thheader" width="50px">
                                                20'dc
                                            </th>
                                            <th align="center" class="thheader">
                                                40'dc</th>
                                            <th align="center" class="thheader">
                                                40'hc</th>
                                            <th align="center" class="thheader">
                                                20'rf</th>
                                            <th align="center" class="thheader">
                                                40'rf</th>
                                            <th align="center" class="thheader">
                                                CBM</th>
                                            <th align="center" class="thheader">
                                                KG</th>
                                            <th align="center" class="thheader">
                                                Set</th>
                                            <!--th align="center" class="thheader">
                                                Action</th-->
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <FooterTemplate>
                                </TABLE>
                            </FooterTemplate>
                        </asp:Repeater>
                    </fieldset>
                    <div class="clear">
                    </div>
                    <%if (Request.QueryString["view"] != null && Request.QueryString["view"] == "1")
                      { %>
                    <div style="margin-top: 5px; width: 100%">
                        <asp:Button ID="btnSave" runat="server" Text="Update" class="button" OnClick="btnSave_Click" />
                        <%} %>
                        <input type="button" id="Exit" value="Exit" class="button" onclick="window.close();" />
                    </div>
                </form>
            </div>
            <!--div id="footer">
                &nbsp;</div-->
        </div>
    </div>
</body>
</html>
